<?php
$trClass = '';
if ($this->firstChild)
{
	$trClass .= 'first-child ';
}

if ($this->lastChild)
{
	$trClass .= 'last-child ';
}
?>
<tr class="<?php echo $trClass; ?><?php echo ($this->fieldHTML === false ? 'field_closed' : ''); ?> single_field_block <?php echo $this->error ? 'error' : ''; ?> field_block_<?=$this->origFieldName;?><?php echo $this->lang ? ' lang_dep lang_' .$this->lang : '' ?>">
	<td class="active-container">
		<div class="block-title">
			<?php
			if ($this->_showDefined)
			{
				?><div class="delfieldbtn"><a href="#" class="show-hide icon icon-del" title="<?php echo Mozg_Lang::_('Use default value'); ?>"></a></div>
			<?php
			}
			?>
			<label class="field_title" for="<?=$this->fieldId;?>"><?=Mozg_Lang::_($this->params['title']);?></label>
			<div class="field-comment"><?=Mozg_Lang::_($this->params['comment']);?></div>
		</div>
		<div class="block-field"><?php echo $this->fieldHTML; ?></div>
		<input type="hidden" name="field_name" value="<?=htmlspecialchars($this->origFieldName);?>">
		<input type="hidden" name="field_lang" value="<?=htmlspecialchars($this->lang);?>">
	</td>
</tr>